<div class="box640">
	<div class="hard-left">
		<span>Lịch sử đặt cược</span>
	</div>
	<div class="clear"></div>
	<div class="sub-content">		
		<table width="100%" border="0" class = "font14">
			<thead>
				<tr align="center" bgcolor="#c9c9c9">
					<th><b>Ngày đặt cược</b></th>
					<th><b>Đài</b></th>
					<th><b>Đề</b></th>
					<th><b>Số chọn</b></th>
					<th><b>Số tiền</b></th>
					<th><b>Trạng thái</b></th>
				</tr>
			</thead>
			<tbody>
				<?php 
				foreach ($bet_histories as $i => $bet_history) {
				
				?>
				<tr align="center" bgcolor="#DBDBDB">
					<td><?php echo date_format(new DateTime($bet_history->trans_date), 'd-m-Y H:i:s');?></td>
					<td><?php echo $bet_history->channel;?></td>
					<td><?php echo $bet_history->bet_type;?></td>
					<td><?php echo $bet_history->choice;?></td>
					<td>
					<?php 
					echo number_format($bet_history->win_lose != 0 ? $bet_history->win_lose: $bet_history->stake, 2);
					?>
					</td>
					<td><?php echo $bet_history->status;?></td>
				</tr>
				<?php
				} 
				?>
			</tbody>
		</table>
		
		<br clear="all">
	</div>
	 <div class="bottom-left"></div>
</div>